package es.castorm.business.customer.internal;

import es.castorm.business.customer.CustomerDTO;

/**
 * The Class CustomerTestUtils.
 */
public class CustomerTestUtils {

	/** The Constant FIRSTNAME. */
	static final String FIRSTNAME = "First";

	/** The Constant LASTNAME. */
	static final String LASTNAME = "Last";

	/** The Constant EMAIL. */
	static final String EMAIL = "e@mail.com";

	/** The Constant EMAIL2. */
	static final String EMAIL2 = "e2@mail.com";

	/** The Constant WRONG_EMAIL. */
	static final String WRONG_EMAIL = "email.com";

	/**
	 * Creates the customer dto.
	 * 
	 * @param firstName the first name
	 * @param lastName the last name
	 * @param email the email
	 * @return the customer dto
	 */
	static CustomerDTO buildCustomerDTO(String firstName, String lastName, String email) {
		CustomerDTO customer = new CustomerDTO();
		customer.setFirstname(firstName);
		customer.setLastname(lastName);
		customer.setEmail(email);
		return customer;
	}

	/**
	 * Creates the customer.
	 * 
	 * @param firstName the first name
	 * @param lastName the last name
	 * @param email the email
	 * @return the customer
	 */
	static Customer buildCustomer(String firstName, String lastName, String email) {
		Customer customer = new Customer();
		customer.setFirstname(firstName);
		customer.setLastname(lastName);
		customer.setEmail(email);
		return customer;
	}
}
